package hyit.app.dao;

import java.util.List;

import hyit.app.model.TeacherInfo;

public interface ITeacherInfoDAO {
	public boolean doCreate(TeacherInfo info) throws Exception;

	public TeacherInfo check(TeacherInfo info) throws Exception;

	public boolean update(TeacherInfo info) throws Exception;

	public TeacherInfo delete(Integer number) throws Exception;

	public TeacherInfo getByID(Integer number) throws Exception;

	public TeacherInfo getByKeyID(Integer keyID) throws Exception;

	public List<TeacherInfo> validate(String account, String password)
			throws Exception;

	public List<TeacherInfo> validate(String propertyName, Object value,
			String password) throws Exception;

	public List<TeacherInfo> getByRank(Integer rank) throws Exception;

	public List<TeacherInfo> getByDepartmentAndRank(Integer number, Integer rank)
			throws Exception;

	public List<TeacherInfo> getByDepartmentNumber(Integer number)
			throws Exception;

	public List<TeacherInfo> getByName(String name) throws Exception;

	public List<TeacherInfo> getAll() throws Exception;
}
